package com.library.service.impl;

import com.library.bean.Book;
import com.library.mapper.BookMapper;
import com.library.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class BookServiceImpl implements BookService {

    @Resource
    private BookMapper bookMapper;
    @Override
    public List<Book> getBooks(Book book, Date beginDate, Date endDate) {
        return bookMapper.selectBookByCondition(book,beginDate,endDate);
    }

    @Override
    public int insertBook(Book book) {
        return bookMapper.insertBook(book);
    }
<<<<<<< HEAD

    @Override
    public int deleteBook(int bookId) {
        return bookMapper.deletBookId(bookId);
    }
=======
>>>>>>> 1ef93dae55a044933853dfde8a8a99391a222fdb
}
